<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>

		<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
	</head>
	<body>
		<div id="app">
			爱好:
			<input type="checkbox" value='听音乐' v-model="likes"/>听音乐
			<input type="checkbox" value='唱歌' v-model="likes"/>唱歌
			<input type="checkbox" value='打游戏' v-model="likes"/>打游戏
			<input type="checkbox" value='看电影' v-model="likes"/>看电影
			<br />
			
			{{likes}}
		</div>
		
		<script>
			var app = Vue.createApp({
				data() {
					return {
						"message": "Hello Vue!",
						"likes":[]
					}
				}
			});
			var vm = app.mount("#app")
		</script>



	</body>
</html>